#include "slros_busmsg_conversion.h"


// Conversions between SL_Bus_jaka_rebar_bind_geometry_msgs_Point and geometry_msgs::Point

void convertFromBus(geometry_msgs::Point* msgPtr, SL_Bus_jaka_rebar_bind_geometry_msgs_Point const* busPtr)
{
  const std::string rosMessageType("geometry_msgs/Point");

  msgPtr->x =  busPtr->X;
  msgPtr->y =  busPtr->Y;
  msgPtr->z =  busPtr->Z;
}

void convertToBus(SL_Bus_jaka_rebar_bind_geometry_msgs_Point* busPtr, geometry_msgs::Point const* msgPtr)
{
  const std::string rosMessageType("geometry_msgs/Point");

  busPtr->X =  msgPtr->x;
  busPtr->Y =  msgPtr->y;
  busPtr->Z =  msgPtr->z;
}


// Conversions between SL_Bus_jaka_rebar_bind_geometry_msgs_Pose and geometry_msgs::Pose

void convertFromBus(geometry_msgs::Pose* msgPtr, SL_Bus_jaka_rebar_bind_geometry_msgs_Pose const* busPtr)
{
  const std::string rosMessageType("geometry_msgs/Pose");

  convertFromBus(&msgPtr->orientation, &busPtr->Orientation);
  convertFromBus(&msgPtr->position, &busPtr->Position);
}

void convertToBus(SL_Bus_jaka_rebar_bind_geometry_msgs_Pose* busPtr, geometry_msgs::Pose const* msgPtr)
{
  const std::string rosMessageType("geometry_msgs/Pose");

  convertToBus(&busPtr->Orientation, &msgPtr->orientation);
  convertToBus(&busPtr->Position, &msgPtr->position);
}


// Conversions between SL_Bus_jaka_rebar_bind_geometry_msgs_PoseStamped and geometry_msgs::PoseStamped

void convertFromBus(geometry_msgs::PoseStamped* msgPtr, SL_Bus_jaka_rebar_bind_geometry_msgs_PoseStamped const* busPtr)
{
  const std::string rosMessageType("geometry_msgs/PoseStamped");

  convertFromBus(&msgPtr->header, &busPtr->Header);
  convertFromBus(&msgPtr->pose, &busPtr->Pose);
}

void convertToBus(SL_Bus_jaka_rebar_bind_geometry_msgs_PoseStamped* busPtr, geometry_msgs::PoseStamped const* msgPtr)
{
  const std::string rosMessageType("geometry_msgs/PoseStamped");

  convertToBus(&busPtr->Header, &msgPtr->header);
  convertToBus(&busPtr->Pose, &msgPtr->pose);
}


// Conversions between SL_Bus_jaka_rebar_bind_geometry_msgs_Quaternion and geometry_msgs::Quaternion

void convertFromBus(geometry_msgs::Quaternion* msgPtr, SL_Bus_jaka_rebar_bind_geometry_msgs_Quaternion const* busPtr)
{
  const std::string rosMessageType("geometry_msgs/Quaternion");

  msgPtr->w =  busPtr->W;
  msgPtr->x =  busPtr->X;
  msgPtr->y =  busPtr->Y;
  msgPtr->z =  busPtr->Z;
}

void convertToBus(SL_Bus_jaka_rebar_bind_geometry_msgs_Quaternion* busPtr, geometry_msgs::Quaternion const* msgPtr)
{
  const std::string rosMessageType("geometry_msgs/Quaternion");

  busPtr->W =  msgPtr->w;
  busPtr->X =  msgPtr->x;
  busPtr->Y =  msgPtr->y;
  busPtr->Z =  msgPtr->z;
}


// Conversions between SL_Bus_jaka_rebar_bind_jaka_msgs_MoveRequest and jaka_msgs::MoveRequest

void convertFromBus(jaka_msgs::MoveRequest* msgPtr, SL_Bus_jaka_rebar_bind_jaka_msgs_MoveRequest const* busPtr)
{
  const std::string rosMessageType("jaka_msgs/MoveRequest");

  msgPtr->coord_mode =  busPtr->CoordMode;
  msgPtr->has_ref =  busPtr->HasRef;
  msgPtr->index =  busPtr->Index;
  msgPtr->mvacc =  busPtr->Mvacc;
  msgPtr->mvradii =  busPtr->Mvradii;
  msgPtr->mvtime =  busPtr->Mvtime;
  msgPtr->mvvelo =  busPtr->Mvvelo;
  convertFromBusVariablePrimitiveArray(msgPtr->pose, busPtr->Pose, busPtr->Pose_SL_Info);
  convertFromBusVariablePrimitiveArray(msgPtr->ref_joint, busPtr->RefJoint, busPtr->RefJoint_SL_Info);
}

void convertToBus(SL_Bus_jaka_rebar_bind_jaka_msgs_MoveRequest* busPtr, jaka_msgs::MoveRequest const* msgPtr)
{
  const std::string rosMessageType("jaka_msgs/MoveRequest");

  busPtr->CoordMode =  msgPtr->coord_mode;
  busPtr->HasRef =  msgPtr->has_ref;
  busPtr->Index =  msgPtr->index;
  busPtr->Mvacc =  msgPtr->mvacc;
  busPtr->Mvradii =  msgPtr->mvradii;
  busPtr->Mvtime =  msgPtr->mvtime;
  busPtr->Mvvelo =  msgPtr->mvvelo;
  convertToBusVariablePrimitiveArray(busPtr->Pose, busPtr->Pose_SL_Info, msgPtr->pose, slros::EnabledWarning(rosMessageType, "pose"));
  convertToBusVariablePrimitiveArray(busPtr->RefJoint, busPtr->RefJoint_SL_Info, msgPtr->ref_joint, slros::EnabledWarning(rosMessageType, "ref_joint"));
}


// Conversions between SL_Bus_jaka_rebar_bind_jaka_msgs_MoveResponse and jaka_msgs::MoveResponse

void convertFromBus(jaka_msgs::MoveResponse* msgPtr, SL_Bus_jaka_rebar_bind_jaka_msgs_MoveResponse const* busPtr)
{
  const std::string rosMessageType("jaka_msgs/MoveResponse");

  convertFromBusVariablePrimitiveArray(msgPtr->message, busPtr->Message, busPtr->Message_SL_Info);
  msgPtr->ret =  busPtr->Ret;
}

void convertToBus(SL_Bus_jaka_rebar_bind_jaka_msgs_MoveResponse* busPtr, jaka_msgs::MoveResponse const* msgPtr)
{
  const std::string rosMessageType("jaka_msgs/MoveResponse");

  convertToBusVariablePrimitiveArray(busPtr->Message, busPtr->Message_SL_Info, msgPtr->message, slros::EnabledWarning(rosMessageType, "message"));
  busPtr->Ret =  msgPtr->ret;
}


// Conversions between SL_Bus_jaka_rebar_bind_ros_time_Time and ros::Time

void convertFromBus(ros::Time* msgPtr, SL_Bus_jaka_rebar_bind_ros_time_Time const* busPtr)
{
  const std::string rosMessageType("ros_time/Time");

  msgPtr->nsec =  busPtr->Nsec;
  msgPtr->sec =  busPtr->Sec;
}

void convertToBus(SL_Bus_jaka_rebar_bind_ros_time_Time* busPtr, ros::Time const* msgPtr)
{
  const std::string rosMessageType("ros_time/Time");

  busPtr->Nsec =  msgPtr->nsec;
  busPtr->Sec =  msgPtr->sec;
}


// Conversions between SL_Bus_jaka_rebar_bind_std_msgs_Bool and std_msgs::Bool

void convertFromBus(std_msgs::Bool* msgPtr, SL_Bus_jaka_rebar_bind_std_msgs_Bool const* busPtr)
{
  const std::string rosMessageType("std_msgs/Bool");

  msgPtr->data =  busPtr->Data;
}

void convertToBus(SL_Bus_jaka_rebar_bind_std_msgs_Bool* busPtr, std_msgs::Bool const* msgPtr)
{
  const std::string rosMessageType("std_msgs/Bool");

  busPtr->Data =  msgPtr->data;
}


// Conversions between SL_Bus_jaka_rebar_bind_std_msgs_Float64MultiArray and std_msgs::Float64MultiArray

void convertFromBus(std_msgs::Float64MultiArray* msgPtr, SL_Bus_jaka_rebar_bind_std_msgs_Float64MultiArray const* busPtr)
{
  const std::string rosMessageType("std_msgs/Float64MultiArray");

  convertFromBusVariablePrimitiveArray(msgPtr->data, busPtr->Data, busPtr->Data_SL_Info);
  convertFromBus(&msgPtr->layout, &busPtr->Layout);
}

void convertToBus(SL_Bus_jaka_rebar_bind_std_msgs_Float64MultiArray* busPtr, std_msgs::Float64MultiArray const* msgPtr)
{
  const std::string rosMessageType("std_msgs/Float64MultiArray");

  convertToBusVariablePrimitiveArray(busPtr->Data, busPtr->Data_SL_Info, msgPtr->data, slros::EnabledWarning(rosMessageType, "data"));
  convertToBus(&busPtr->Layout, &msgPtr->layout);
}


// Conversions between SL_Bus_jaka_rebar_bind_std_msgs_Header and std_msgs::Header

void convertFromBus(std_msgs::Header* msgPtr, SL_Bus_jaka_rebar_bind_std_msgs_Header const* busPtr)
{
  const std::string rosMessageType("std_msgs/Header");

  convertFromBusVariablePrimitiveArray(msgPtr->frame_id, busPtr->FrameId, busPtr->FrameId_SL_Info);
  msgPtr->seq =  busPtr->Seq;
  convertFromBus(&msgPtr->stamp, &busPtr->Stamp);
}

void convertToBus(SL_Bus_jaka_rebar_bind_std_msgs_Header* busPtr, std_msgs::Header const* msgPtr)
{
  const std::string rosMessageType("std_msgs/Header");

  convertToBusVariablePrimitiveArray(busPtr->FrameId, busPtr->FrameId_SL_Info, msgPtr->frame_id, slros::EnabledWarning(rosMessageType, "frame_id"));
  busPtr->Seq =  msgPtr->seq;
  convertToBus(&busPtr->Stamp, &msgPtr->stamp);
}


// Conversions between SL_Bus_jaka_rebar_bind_std_msgs_MultiArrayDimension and std_msgs::MultiArrayDimension

void convertFromBus(std_msgs::MultiArrayDimension* msgPtr, SL_Bus_jaka_rebar_bind_std_msgs_MultiArrayDimension const* busPtr)
{
  const std::string rosMessageType("std_msgs/MultiArrayDimension");

  convertFromBusVariablePrimitiveArray(msgPtr->label, busPtr->Label, busPtr->Label_SL_Info);
  msgPtr->size =  busPtr->Size;
  msgPtr->stride =  busPtr->Stride;
}

void convertToBus(SL_Bus_jaka_rebar_bind_std_msgs_MultiArrayDimension* busPtr, std_msgs::MultiArrayDimension const* msgPtr)
{
  const std::string rosMessageType("std_msgs/MultiArrayDimension");

  convertToBusVariablePrimitiveArray(busPtr->Label, busPtr->Label_SL_Info, msgPtr->label, slros::EnabledWarning(rosMessageType, "label"));
  busPtr->Size =  msgPtr->size;
  busPtr->Stride =  msgPtr->stride;
}


// Conversions between SL_Bus_jaka_rebar_bind_std_msgs_MultiArrayLayout and std_msgs::MultiArrayLayout

void convertFromBus(std_msgs::MultiArrayLayout* msgPtr, SL_Bus_jaka_rebar_bind_std_msgs_MultiArrayLayout const* busPtr)
{
  const std::string rosMessageType("std_msgs/MultiArrayLayout");

  msgPtr->data_offset =  busPtr->DataOffset;
  convertFromBusVariableNestedArray(msgPtr->dim, busPtr->Dim, busPtr->Dim_SL_Info);
}

void convertToBus(SL_Bus_jaka_rebar_bind_std_msgs_MultiArrayLayout* busPtr, std_msgs::MultiArrayLayout const* msgPtr)
{
  const std::string rosMessageType("std_msgs/MultiArrayLayout");

  busPtr->DataOffset =  msgPtr->data_offset;
  convertToBusVariableNestedArray(busPtr->Dim, busPtr->Dim_SL_Info, msgPtr->dim, slros::EnabledWarning(rosMessageType, "dim"));
}


// Conversions between SL_Bus_jaka_rebar_bind_std_msgs_UInt8 and std_msgs::UInt8

void convertFromBus(std_msgs::UInt8* msgPtr, SL_Bus_jaka_rebar_bind_std_msgs_UInt8 const* busPtr)
{
  const std::string rosMessageType("std_msgs/UInt8");

  msgPtr->data =  busPtr->Data;
}

void convertToBus(SL_Bus_jaka_rebar_bind_std_msgs_UInt8* busPtr, std_msgs::UInt8 const* msgPtr)
{
  const std::string rosMessageType("std_msgs/UInt8");

  busPtr->Data =  msgPtr->data;
}

